
if(CONFIG_C920V2_SOURCE)
    list(APPEND C920V2_SRCS source/c920v2_opt/utils.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/setup.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/capability.c)
endif()

if(CONFIG_C920V2_CONVOLUTION_FP32)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp32/convolution_1x1_fp32_pack1ton.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp32/convolution_1x1_fp32_packn.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp32/convolution_1x1_fp32_packnto1.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp32/convolution_gemm_fp32_pack1ton.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp32/convolution_gemm_fp32_packn.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp32/convolution_gemm_fp32_packnto1.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp32/convolution.c)
endif()

if(CONFIG_C920V2_CONVOLUTION_FP16)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp16/convolution_1x1_fp16_pack1ton.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp16/convolution_1x1_fp16_packn.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp16/convolution_1x1_fp16_packnto1.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp16/convolution_gemm_fp16_pack1ton.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp16/convolution_gemm_fp16_packn.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp16/convolution_gemm_fp16_packnto1.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp16/convolution.c)
endif()

if(CONFIG_C920V2_CONVOLUTION_INT8)
    list(APPEND C920V2_SRCS source/c920v2_opt/int8/convolution_1x1_int8_pack1ton.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/int8/convolution_1x1_int8_packn.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/int8/convolution_1x1_int8_packnto1.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/int8/convolution.c)
endif()

if(CONFIG_C920V2_GEMM_FP32)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp32/gemm_fp32_packn.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp32/gemm_fp32_ncxhwx.S)
endif()

if(CONFIG_C920V2_GEMM_FP16)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp16/gemm_fp16_packn.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/fp16/gemm_fp16_ncxhwx.S)
endif()

if(CONFIG_C920V2_GEMM_INT8)
    list(APPEND C920V2_SRCS source/c920v2_opt/int8/gemm_int8_packn.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/int8/gemm_int8_ncxhwx.S)
    list(APPEND C920V2_SRCS source/c920v2_opt/int8/gemm_int8_dot_packn.c)
    list(APPEND C920V2_SRCS source/c920v2_opt/int8/gemm_int8_dot_ncxhwx.S)
endif()
